package com.msb.order.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SimpleController {
    @GetMapping("/simple/qps")
    public String qps(){
        //模拟一次网络延时
        try {
            Thread.sleep(100);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return  "简单测试qps";
    }
    @GetMapping("/simple/thread")
    public String testThread(){
        //模拟一次网络延时
        try {
            Thread.sleep(2*1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return  "简单测试线程";
    }

}
